package ooday03;

public class Chick extends Animal implements Swim{
    Chick() {

    }
    public void swim() {
        System.out.println(name + "小鸡在游泳" + age + "年龄" + color + "颜色");

    }
    Chick(String name, int age, String color) {
        super(name,age,color);
    }

    void eat() {
        System.out.println(name+"小鸡在吃东西"+age+"年龄"+color+"颜色");
    }

    void layEggs() {
        System.out.println(name+"在下蛋");
    }
}
